VerifierRepositoryImpl

public final class VerifierRepositoryImpl extends BaseRepository implements VerifierRepository

This class contains several methods to download public certificates (i.e. settings) and check the download status. It implements the interface VerifierRepository.

Constructors

VerifierRepositoryImpl
Link copied to clipboard
@Inject()
VerifierRepositoryImpl VerifierRepositoryImpl(ApiService apiService, Preferences preferences, AppDatabase db, KeyStoreCryptor keyStoreCryptor, DispatcherProvider dispatcherProvider)

Types

Companion
Link copied to clipboard
public class Companion

Functions

atLeastOneChunkDownloaded
Link copied to clipboard
final Boolean atLeastOneChunkDownloaded()
checkCurrentDownloadSize
Link copied to clipboard
final Unit checkCurrentDownloadSize()
checkInBlackList
Link copied to clipboard
Boolean checkInBlackList(String ucvi)
clearDBAndPrefs
Link copied to clipboard
final Unit clearDBAndPrefs()
deleteAllFromRealm
Link copied to clipboard
final Unit deleteAllFromRealm()
deleteListFromRealm
Link copied to clipboard
final Unit deleteListFromRealm(List<String> deltaDeleteList)
downloadChunks
Link copied to clipboard
Unit downloadChunks()
execute
Link copied to clipboard
final P execute<P extends Any>(SuspendFunction0<P> doOnAsyncBlock)
fetchCertificate
Link copied to clipboard
final Boolean fetchCertificate(Long resumeToken)
fetchCertificates
Link copied to clipboard
final Boolean fetchCertificates()
fetchValidationRules
Link copied to clipboard
final Boolean fetchValidationRules()
getApiService
Link copied to clipboard
final ApiService getApiService()
getCertificate
Link copied to clipboard
Certificate getCertificate(String kid)
getCertificateFetchStatus
Link copied to clipboard
LiveData<BooleangetCertificateFetchStatus()
getContext
Link copied to clipboard
final Context getContext()
getCRLStatus
Link copied to clipboard
final CrlStatus getCrlstatus()
getCurrentRetryNum
Link copied to clipboard
final Integer getCurrentRetryNum()
getDb
Link copied to clipboard
final AppDatabase getDb()
getDebugInfoLiveData
Link copied to clipboard
final MutableLiveData<DebugInfoWrappergetDebugInfoLiveData()
LiveData<DebugInfoWrappergetDebugInfoLiveData()
getDispatcherProvider
Link copied to clipboard
final DispatcherProvider getDispatcherProvider()
getFetchStatus
Link copied to clipboard
final MutableLiveData<BooleangetFetchStatus()
getInitDownloadLiveData
Link copied to clipboard
final MutableLiveData<BooleangetInitDownloadLiveData()
LiveData<BooleangetInitDownloadLiveData()
getKeyStoreCryptor
Link copied to clipboard
final KeyStoreCryptor getKeyStoreCryptor()
getMaxRetryReached
Link copied to clipboard
final MutableLiveData<BooleangetMaxRetryReached()
LiveData<BooleangetMaxRetryReached()
getPreferences
Link copied to clipboard
final Preferences getPreferences()
getRealmSize
Link copied to clipboard
final Integer getRealmSize()
getRevokeList
Link copied to clipboard
final Unit getRevokeList(Long version, String bodyResponse)
getSizeOverLiveData
Link copied to clipboard
final MutableLiveData<BooleangetSizeOverLiveData()
LiveData<BooleangetSizeOverLiveData()
getValidCertList
Link copied to clipboard
final List<StringgetValidCertList()
handleErrorState
Link copied to clipboard
final Unit handleErrorState()
insertListToRealm
Link copied to clipboard
final Unit insertListToRealm(List<String> deltaInsertList)
isDownloadComplete
Link copied to clipboard
final Boolean isDownloadComplete(CrlStatus status)
isDownloadCompleted
Link copied to clipboard
final Boolean isDownloadCompleted()
isRetryAllowed
Link copied to clipboard
final Boolean isRetryAllowed()
isSameChunkSize
Link copied to clipboard
final Boolean isSameChunkSize(CrlStatus crlStatus)
isSizeOverThreshold
Link copied to clipboard
final Boolean isSizeOverThreshold(CrlStatus crlStatus)
manageFinalReconciliation
Link copied to clipboard
final Unit manageFinalReconciliation()
noMoreChunks
Link copied to clipboard
final Boolean noMoreChunks(CrlStatus status)
noPendingDownload
Link copied to clipboard
final Boolean noPendingDownload()
outDatedVersion
Link copied to clipboard
final Boolean outDatedVersion(CrlStatus crlStatus)
persistRevokes
Link copied to clipboard
final Unit persistRevokes(CertificateRevocationList certificateRevocationList)
resetCurrentRetryStatus
Link copied to clipboard
Unit resetCurrentRetryStatus()
sameRequestedVersion
Link copied to clipboard
final Boolean sameRequestedVersion(CrlStatus crlStatus)
saveCrlStatusInfo
Link copied to clipboard
final Unit saveCrlStatusInfo(CrlStatus crlStatus)
saveLastFetchDate
Link copied to clipboard
final Unit saveLastFetchDate()
setContext
Link copied to clipboard
final Unit setContext(Context context)
setCrlstatus
Link copied to clipboard
final Unit setCrlstatus(CrlStatus crlstatus)
setCurrentRetryNum
Link copied to clipboard
final Unit setCurrentRetryNum(Integer currentRetryNum)
setRealmSize
Link copied to clipboard
final Unit setRealmSize(Integer realmSize)
syncData
Link copied to clipboard
Boolean syncData(Context applicationContext)
updateDebugInfoWrapper
Link copied to clipboard
final Unit updateDebugInfoWrapper()

Properties

apiService
Link copied to clipboard
private final ApiService apiService
context
Link copied to clipboard
private Context context
crlstatus
Link copied to clipboard
private CrlStatus crlstatus
currentRetryNum
Link copied to clipboard
private Integer currentRetryNum
db
Link copied to clipboard
private final AppDatabase db
debugInfoLiveData
Link copied to clipboard
private final MutableLiveData<DebugInfoWrapperdebugInfoLiveData
dispatcherProvider
Link copied to clipboard
private final DispatcherProvider dispatcherProvider
fetchStatus
Link copied to clipboard
private final MutableLiveData<BooleanfetchStatus
initDownloadLiveData
Link copied to clipboard
private final MutableLiveData<BooleaninitDownloadLiveData
keyStoreCryptor
Link copied to clipboard
private final KeyStoreCryptor keyStoreCryptor
maxRetryReached
Link copied to clipboard
private final MutableLiveData<BooleanmaxRetryReached
preferences
Link copied to clipboard
private final Preferences preferences
realmSize
Link copied to clipboard
private Integer realmSize
sizeOverLiveData
Link copied to clipboard
private final MutableLiveData<BooleansizeOverLiveData
validCertList
Link copied to clipboard
private final List<StringvalidCertList